home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- global selectedSprite
- set HC to the number of cast "handCursor"
- cursor([HC, HC + 1])
- set selectedSprite to 0
- put field "startState" into field "currentState"
- end
-
- on selectNewNum
- global selectedSprite
- set the foreColor of sprite selectedSprite to 255
- set the foreColor of sprite the clickOn to 71
- set selectedSprite to the clickOn
- puppetSound(the name of cast (the number of cast "won" + the clickOn - 12))
- updateStage()
- end
-
- on moveNumToSquare
- global selectedSprite
- if the castNum of sprite the clickOn = the number of cast "blank square" then
- if selectedSprite <> 0 then
- set selectedNum to selectedSprite - 11
- set the castNum of sprite the clickOn to the number of cast "one" + selectedNum - 1
- set the foreColor of sprite selectedSprite to 255
- set the castNum of sprite selectedSprite to the number of cast "blank square"
- set selectedSprite to 0
- puppetSound("Poper.S")
- updateStage()
- set itemNum to (the clickOn mod 3) + 1
- set lineNum to the clickOn / 3
- put selectedNum into item itemNum of line lineNum of field "currentState"
- if field "currentState" = field "solution" then
- puppetSound("Ta Dah!.S")
- updateStage()
- continue()
- end if
- end if
- else
- set whichNum to the castNum of sprite the clickOn - the number of cast "one" + 1
- set the castNum of sprite (11 + whichNum) to the number of cast "one" + whichNum - 1
- set the castNum of sprite the clickOn to the number of cast "blank square"
- set the foreColor of sprite selectedSprite to 255
- set the foreColor of sprite (11 + whichNum) to 71
- set selectedSprite to 11 + whichNum
- puppetSound("Beebit.S")
- updateStage()
- set itemNum to ((the clickOn - 3) mod 3) + 1
- set lineNum to ((the clickOn - 3) / 3) + 1
- put 0 into item itemNum of line lineNum of field "currentState"
- end if
- end
-
- on enterFrame
- puppetSound("Nice Pling.S")
- updateStage()
- end
-